package view.notes;

import javax.swing.GroupLayout;

public class GroupLayoutNoteDecompositionJPanel extends AbstractNoteDecompositionJPanel {

	GroupLayout groupLayout;
	
	public GroupLayoutNoteDecompositionJPanel() {
		super();
	}
	
	@Override
	protected void setLayoutAndAddCommponents() {
		this.groupLayout = new GroupLayout(this);
		this.setLayout(this.groupLayout);
		
		groupLayout.setAutoCreateContainerGaps(true);
		groupLayout.setAutoCreateGaps(true);
		
		groupLayout.setVerticalGroup(groupLayout.createSequentialGroup()
				.addComponent(this.choixLabel)
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.jComboBox)
					.addComponent(this.okButton))
				.addComponent(this.decompositionLabel)
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.secondeMineureLabel)
					.addComponent(this.secondeMineureValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.secondeMajeureLabel)
					.addComponent(this.secondeMajeureValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.tierceMineureLabel)
					.addComponent(this.tierceMineureValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.tierceMajeureLabel)
					.addComponent(this.tierceMajeureValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.quarteLabel)
					.addComponent(this.quarteValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.quinteMineureLabel)
					.addComponent(this.quinteMineureValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.quinteLabel)
					.addComponent(this.quinteValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.quinteMajeureLabel)
					.addComponent(this.quinteMajeureValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.sixteLabel)
					.addComponent(this.sixteValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.septiemeMineureLabel)
					.addComponent(this.septiemeMineureValue))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					.addComponent(this.septiemeMajeureLabel)
					.addComponent(this.septiemeMajeureValue))
					
		);
		
		groupLayout.setHorizontalGroup(groupLayout.createSequentialGroup()
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
					.addComponent(this.choixLabel)
					.addComponent(this.jComboBox)
					.addComponent(this.decompositionLabel)
					.addComponent(this.secondeMineureLabel)
					.addComponent(this.secondeMajeureLabel)
					.addComponent(this.tierceMineureLabel)
					.addComponent(this.tierceMajeureLabel)
					.addComponent(this.quarteLabel)
					.addComponent(this.quinteMineureLabel)
					.addComponent(this.quinteLabel)
					.addComponent(this.quinteMajeureLabel)
					.addComponent(this.sixteLabel)
					.addComponent(this.septiemeMineureLabel)
					.addComponent(this.septiemeMajeureLabel))
				.addGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
					.addComponent(this.okButton)
					.addComponent(this.secondeMineureValue)
					.addComponent(this.secondeMajeureValue)
					.addComponent(this.tierceMineureValue)
					.addComponent(this.tierceMajeureValue)
					.addComponent(this.quarteValue)
					.addComponent(this.quinteMineureValue)
					.addComponent(this.quinteValue)
					.addComponent(this.quinteMajeureValue)
					.addComponent(this.sixteValue)
					.addComponent(this.septiemeMineureValue)
					.addComponent(this.septiemeMajeureValue))

		);
	}

}
